package com.zhongcw.test.java.reflect.pojo;

import java.util.Date;

public class Student {
    public String name;
    protected Date birthday;
    private String idCardNum;

    public Student() {}

    public Student(String name) {
        this.name = name;
    }

    private Student(String name, String idCardNum, Date birthday) {
        this(name);
        this.idCardNum = idCardNum;
        this.birthday = birthday;
    }

    public void sayHello() {
        System.out.println("My name is " + name);
    }
}
